using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace  Hostal.Bussines.Entities
{
    public partial class Insumo
    {
        public Insumo()
        {
            this.DetallePedidoes = new List<DetallePedido>();
        }

        public int IdInsumos { get; set; }
        [Required(ErrorMessage="Seleccione un Proveedor")]
        public int Proveedor_Id { get; set; }

        [Required(ErrorMessage = "Ingrese Nombre")]
        public string Nombre { get; set; }

        [Range(1,9999,ErrorMessage = "Stock Incorrecto")]
        public int Stock { get; set; }

        public virtual ICollection<DetallePedido> DetallePedidoes { get; set; }
        public virtual Proveedore Proveedore { get; set; }
    }
}
